<?php
/**
 * Created by Forever. 
 * User: Forever
 * Date: 2018/10/03 
 * Time: 上午 10:39
 */
namespace app\api\validate;
use think\Validate;
use think\{Db};
class Member extends Validate{
    // 验证规则
    protected $rule = [
        ['openid','require','-10008'],
        ['member_id','require','-10014'],
        ['name','require','-10012'],


        ['encryptData','require','-10004'],

    ];

    /*验证的名字*/
    protected $scene = [
        'detail'=>['openid'], 
        'follow'=>['member_id'],
        'role_edit'=>['name'],
        
    ];


    /**函数判断
     * [checkData description]
     * @param  [type] $value [description]
     * @param  [type] $rule  [description]
     * @param  [type] $data  [description]
     * @return [type]        [description]
     */
    protected function checkGrowth($value,$rule,$data){
        return true;
    }


}